Optimal. Leaf size=30 \[ a x-\frac {b \sin (c+d x) \cos (c+d x)}{2 d}+\frac {b x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2635, 8} \[ a x-\frac {b \sin (c+d x) \cos (c+d x)}{2 d}+\frac {b x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rubi steps
\begin {align*} \int \left (a+b \sin ^2(c+d x)\right ) \, dx &=a x+b \int \sin ^2(c+d x) \, dx\\ &=a x-\frac {b \cos (c+d x) \sin (c+d x)}{2 d}+\frac {1}{2} b \int 1 \, dx\\ &=a x+\frac {b x}{2}-\frac {b \cos (c+d x) \sin (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 33, normalized size = 1.10 \[ a x+\frac {b (c+d x)}{2 d}-\frac {b \sin (2 (c+d x))}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 29, normalized size = 0.97 \[ \frac {{\left (2 \, a + b\right )} d x - b \cos \left (d x + c\right ) \sin \left (d x + c\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 25, normalized size = 0.83 \[ \frac {1}{4} \, b {\left (2 \, x - \frac {\sin \left (2 \, d x + 2 \, c\right )}{d}\right )} + a x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 32, normalized size = 1.07 \[ a x +\frac {b \left (-\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 29, normalized size = 0.97 \[ a x + \frac {{\left (2 \, d x + 2 \, c - \sin \left (2 \, d x + 2 \, c\right )\right )} b}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.40, size = 27, normalized size = 0.90 \[ -\frac {\frac {b\,\sin \left (2\,c+2\,d\,x\right )}{4}-d\,x\,\left (a+\frac {b}{2}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.35, size = 51, normalized size = 1.70 \[ a x + b \left (\begin {cases} \frac {x \sin ^{2}{\left (c + d x \right )}}{2} + \frac {x \cos ^{2}{\left (c + d x \right )}}{2} - \frac {\sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\x \sin ^{2}{\relax (c )} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________